package icani.core.entity;

import icani.domainmodel.BaseEntity;

import icani.datamodel.jpa.BaseDataEntity;


public enum DataEntityFactory {

	Instance;

	
	public BaseDataEntity newDataEntity(Class<?> domainEntity) {
	
		if (domainEntity.getSimpleName().equals("Cane"))
			return (new Cane());

            
		else
			return null;
			
	}

	public Class<? extends BaseDataEntity> getClassDataEntity(Class<?> domainEntity) {
	
		if (domainEntity.getSimpleName().equals("Cane"))
			return icani.core.entity.Cane.class;
			

		else
			return null;
			
	}

}
